package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weixing.mall.provider.api.model.vo.ItemVo;
import com.weixing.mall.provider.model.domain.ShopCart;
import com.weixing.mall.provider.model.dto.CartChgNumDto;
import com.weixing.mall.provider.model.vo.ShopCartProductAddressVo;
import com.weixing.mall.provider.model.vo.ShopCartVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品模块-购物车 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface ShopCartMapper extends BaseMapper<ShopCart> {
    void changeNum(@Param("qs")CartChgNumDto shopCartEditQuantityDto);

    List<ShopCartVo> selectByMemberId(Long memberId);

    ShopCartVo selectByIds(int id);

    ShopCartProductAddressVo selectAddressByMemberId(long memberId);

    List<ItemVo> loadSelectedItem(Long memberId);
}
